package com.hzit.config;

import com.hzit.vo.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration

public class MyConfig {

//指定默认初始化方法和默认销毁方法

	@Bean(initMethod = "myPostConstruct", destroyMethod = "myPreDestroy")
	public Student student() {

		return new Student();

	}
}